home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / Snippets / Sound / SndPlayDoubleBuffer / _headers / Private_DBFFFunctions.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-15  |  2.1 KB  |  78 lines  |  [TEXT/CWIE]

  1. /*
  2. **    Apple Macintosh Developer Technical Support
  3. **
  4. **    Headers for routines demonstrating how to deal with house keeping
  5. **    associated with playing sound.
  6. **
  7. **    by Mark Cookson, Apple Developer Technical Support
  8. **
  9. **    File:    Private_DBFFFunctions.h
  10. **
  11. **    Copyright ©1996 Apple Computer, Inc.
  12. **    All rights reserved.
  13. **
  14. **    You may incorporate this sample code into your applications without
  15. **    restriction, though the sample code has been provided "AS IS" and the
  16. **    responsibility for its operation is 100% yours.  However, what you are
  17. **    not permitted to do is to redistribute the source as "Apple Sample
  18. **    Code" after having made changes. If you're going to re-distribute the
  19. **    source, we require that you make it clear in the source that the code
  20. **    was descended from Apple Sample Code, but that you've made changes.
  21. */
  22.  
  23. #ifndef __PRIVATE_DBFFFUNC__
  24. #define __PRIVATE_DBFFFUNC__
  25.  
  26. #include <FSM.h>
  27.  
  28. #ifndef __INTERRUPT_ROUTINES__
  29. #include "Interrupt_Routines.h"
  30. #endif
  31.  
  32. #ifndef __MyAIFF__
  33. #include "AIFF.h"
  34. #endif
  35.  
  36. #ifndef __SND__
  37. #include "SND.h"
  38. #endif
  39.  
  40. #ifndef __ULAW__
  41. #include "ULAW.h"
  42. #endif
  43.  
  44. #ifndef __WAVE__
  45. #include "WAVE.h"
  46. #endif
  47.  
  48. #ifndef __LDANDFIX__
  49. #include "LDandFix.h"
  50. #endif
  51.  
  52. #ifndef __DEFINES__
  53. #include "Defines.h"
  54. #endif
  55.  
  56. /* Function declarations for private functions */
  57. OSErr            ASoundInit                (SoundInfoPtr theSoundInfo);
  58. Boolean            IsValid                    (SoundInfoPtr theSoundInfo);
  59. Boolean            StrictIsValid            (SoundInfoPtr theSoundInfo);
  60. Boolean            CheckValididity            (SoundInfoPtr theSoundInfo,
  61.                                         Boolean strict);
  62. pascal Boolean    ASoundFileFilter        (CInfoPBPtr theFileInfo);
  63. OSErr            ASoundSetNumBuffers        (SoundInfoPtr theSoundInfo,
  64.                                         long newValue);
  65. OSErr            ASoundSetBufferSize        (SoundInfoPtr theSoundInfo,
  66.                                         long newValue);
  67. OSErr            ASoundSetSoundLength    (SoundInfoPtr theSoundInfo,
  68.                                         long newValue);
  69. OSErr            InstallCallBack            (SoundInfoPtr theSoundInfo);
  70. OSErr            SetUpSoundHeader        (SoundInfoPtr theSoundInfo,
  71.                                         unsigned long bufferSize);
  72. OSErr            ASoundPrimeBuffers        (SoundInfoPtr theSoundInfo);
  73. OSErr            PauseSound                (SoundInfoPtr theSoundInfo);
  74. OSErr            ResumeSound                (SoundInfoPtr theSoundInfo);
  75. Rect            GetMainScreenRect        (void);
  76.  
  77. #endif
  78.